var postcss_nested = require('postcss-nested')

module.exports = {
  entry: "./src/app.jsx",
  output: {
    filename: "bundle.js"
  },
  resolve: {
     modulesDirectories: ['node_modules', './src/ui'],
     extensions: ['', '.js', '.jsx']
   },
  module: {
    loaders: [
      { test: /\.jsx?$/, loaders: ['react-hot', 'babel-loader'], exclude: /node_modules/ },
      { test: /\.css$/, loader: "style-loader!css-loader!postcss-loader" }
    ]
  },
  postcss: function () {
    return [postcss_nested]
  }
}
